<template>
  <div class="registerDetail">
    <div class="task_header">
      <div class="top_title">
        <div class="top_title_back" @click="onClickLeft"><i class="iconfont icon-back"></i></div>
        <div class="top_title_val">
          {{ $route.meta.title }}
        </div>
      </div>
    </div>

    <div class="task_detail">
      <div class="task_detail_header">
        <div class="task_detail_headerbox">
          <div class="title">{{ dataSource.carNo ? dataSource.carNo : '-' }}</div>
          <div class="name">
            <div class="txt">{{ dataSource.insCmp ? dataSource.insCmp : '-' }}</div>
          </div>
          <div class="status">
            <img class="item_img" src="@/assets/images/tel_icon.png" @click="handleTel(dataSource.ownerPhone)" />
          </div>
        </div>
      </div>
    </div>

    <div class="tabBarBox">
      <!-- <div
        class="icon_menubox"
        @click.stop="showTablistVisible = true"
      >
        <img
          class="icon_menu"
          src="@/assets/images/show_menu.png"
        />
      </div> -->
      <van-tabs v-model="tabIndex" :swipe-threshold="3">
        <van-tab title="基本信息">
          <div class="detailbox_item mt175">
            <div class="detailbox_item_title">保险单信息</div>
            <div class="detail_content">
              <div class="task_itembox">
                <div class="task_itembox_con w100">
                  <div class="task_label">保险登记单号：</div>
                  <div class="task_value">{{ dataSource.billNumber ? dataSource.billNumber : '- -' }}</div>
                </div>
                <div class="task_itembox_con">
                  <div class="task_label">保险公司：</div>
                  <div class="task_value">{{ dataSource.insCmp ? dataSource.insCmp : '- -' }}</div>
                </div>
                <div class="task_itembox_con">
                  <div class="task_label">起保日期：</div>
                  <div class="task_value">{{ dataSource.beginTime ? dataSource.beginTime : '- -' }}</div>
                </div>
                <div class="task_itembox_con">
                  <div class="task_label">终保日期：</div>
                  <div class="task_value">{{ dataSource.endTime ? dataSource.endTime : '- -' }}</div>
                </div>
                <div class="task_itembox_con">
                  <div class="task_label">出单日期：</div>
                  <div class="task_value">{{ dataSource.outBillDateEx ? dataSource.outBillDateEx : '- -' }}</div>
                </div>
                <div class="task_itembox_con">
                  <div class="task_label">备注：</div>
                  <div class="task_value">{{ dataSource.remark ? dataSource.remark : '- -' }}</div>
                </div>
              </div>
            </div>
          </div>
          <div class="detailbox_item">
            <div class="detailbox_item_title">支付信息</div>
            <div class="carInfo_content">
              <div class="carInfo_item">
                <div class="item_label">交强险金额：</div>
                <div class="item_val">{{ dataSource.acciInsAmount ? dataSource.acciInsAmount : '- -' }}</div>
              </div>
              <div class="carInfo_item">
                <div class="item_label">商业险金额：</div>
                <div class="item_val">{{ dataSource.comInsAmount ? dataSource.comInsAmount : '- -' }}</div>
              </div>
              <div class="carInfo_item">
                <div class="item_label">车船税：</div>
                <div class="item_val">{{ dataSource.vehicleTaxAmount ? dataSource.vehicleTaxAmount : '- -' }}</div>
              </div>
              <div class="carInfo_item">
                <div class="item_label">驾意险金额：</div>
                <div class="item_val">{{ dataSource.otherAmt ? dataSource.otherAmt : '- -' }}</div>
              </div>
              <div class="carInfo_item">
                <div class="item_label">返点金额合计:</div>
                <div class="item_val">{{ dataSource.rotalReturnAmt ? dataSource.rotalReturnAmt : ' - -' }}</div>
              </div>
              <div class="carInfo_item">
                <div class="item_label">已收款金额：</div>
                <div class="item_val">{{ dataSource.recAmt ? dataSource.recAmt : '- - ' }}</div>
              </div>

              <div class="carInfo_item">
                <div class="item_label">已开票金额：</div>
                <div class="item_val">{{ dataSource.invAmt ? dataSource.invAmt : '- -' }}</div>
              </div>

              <div class="carInfo_item">
                <div class="item_label">收款日期：</div>
                <div class="item_val">{{ dataSource.collectionDate ? dataSource.collectionDate : '- -' }}</div>
              </div>
              <div class="carInfo_item">
                <div class="item_label">开票日期：</div>
                <div class="item_val">{{ dataSource.invoiceDate ? dataSource.invoiceDate : '- -' }}</div>
              </div>
            </div>
          </div>
        </van-tab>
        <van-tab title="险种信息">
          <div class="detailbox_item mt175">
            <div class="detailbox_item_title">投保险种信息</div>
            <div class="carInfo_content">
              <div class="carInfo_item">
                <div class="item_label">商业保险单号：</div>
                <div class="item_val">{{ dataSource.inscmpBillNo ? dataSource.inscmpBillNo : '- -' }}</div>
              </div>
              <div class="carInfo_item">
                <div class="item_label">交强险险单号：</div>
                <div class="item_val">{{ dataSource.inscmpBillNo ? dataSource.inscmpBillNo : '- -' }}</div>
              </div>
            </div>
            <table class="tablebox" v-if="dataSource.kdtEntry.length != 0">
              <tr>
                <th>投保险种</th>
                <th>保险限额</th>
                <th>保费金额</th>
                <th>批增时间</th>
              </tr>
              <tr v-for="(item, index) in dataSource.kdtEntry" :key="index">
                <td>{{ item.insuranceTypeName }}</td>
                <td>{{ item.insLimitAmt }}</td>
                <td>{{ item.insuranceAmount }}</td>
                <td>{{ item.addDate }}</td>
              </tr>
            </table>
          </div>
        </van-tab>
      </van-tabs>
    </div>
    <!-- 表单 -->
    <!-- <div class="formData">
      <van-field
        readonly
        v-model="dataSource.billNumber"
        name="保险登记单号"
        label="保险登记单号"
        input-align="right"
      />

      <van-field
        readonly
        v-model="dataSource.insCmp"
        name="保险公司"
        label="保险公司"
        input-align="right"
      />

      <van-field
        readonly
        v-model="dataSource.beginTime"
        name="起保日期"
        label="起保日期"
        input-align="right"
      />

      <van-field
        readonly
        v-model="dataSource.endTime"
        name="终保日期"
        label="终保日期"
        input-align="right"
      />

      <van-field
        readonly
        v-model="dataSource.outBillDateEx"
        name="出单日期"
        label="出单日期"
        input-align="right"
      />
      <van-field
        v-model="dataSource.remark"
        name="备注"
        label="备注"
        type="textarea"
        input-align="left"
        readonly
        autosize
      />
    </div> -->
    <!-- 底部tab -->
    <!-- <div class="tabBarBox">
      <van-tabs v-model="tabActive">
        <van-tab title="支付信息">
          <div class="tabCar">
            <van-field
              v-model="dataSource.acciInsAmount"
              name="交强险金额"
              label="交强险金额"
              input-align="right"
              readonly
            />
            <van-field
              v-model="dataSource.comInsAmount"
              name="商业险金额"
              label="商业险金额"
              input-align="right"
              readonly
            />
            <van-field
              v-model="dataSource.vehicleTaxAmount"
              name="车船税"
              label="车船税"
              input-align="right"
              readonly
            />
            <van-field
              v-model="dataSource.otherAmt"
              name="驾意险金额"
              label="驾意险金额"
              input-align="right"
              readonly
            />
            <van-field
              v-model="dataSource.rotalReturnAmt"
              name="返点金额合计"
              label="返点金额合计"
              input-align="right"
              readonly
            />
            <van-field
              v-model="dataSource.recAmt"
              name="已收款金额"
              label="已收款金额"
              input-align="right"
              readonly
            />
            <van-field
              v-model="dataSource.invAmt"
              name="已开票金额"
              label="已开票金额"
              input-align="right"
              readonly
            />
            <van-field
              v-model="dataSource.collectionDate"
              name="收款日期"
              label="收款日期"
              input-align="right"
              readonly
            />
            <van-field
              v-model="dataSource.invoiceDate"
              name="开票日期"
              label="开票日期"
              input-align="right"
              readonly
            />
          </div>
        </van-tab>
        <van-tab title="险种信息">
          <div class="insInfo">
            <van-field
              v-model="dataSource.inscmpBillNo"
              name="商业保险单号"
              label="商业保险单号"
              input-align="right"
              readonly
            />
            <van-field
              v-model="dataSource.inscmpAcciBillNo"
              name="交强险险单号"
              label="交强险险单号"
              input-align="right"
              readonly
            />
            <table class="tablebox" v-if="dataSource.kdtEntry.length != 0">
              <tr>
                <th>投保险种</th>
                <th>保险限额</th>
                <th>保费金额</th>
                <th>批增时间</th>
              </tr>
              <tr v-for="(item, index) in dataSource.kdtEntry" :key="index">
                <td>{{ item.insuranceTypeName }}</td>
                <td>{{ item.insLimitAmt }}</td>
                <td>{{ item.insuranceAmount }}</td>
                <td>{{ item.addDate }}</td>
              </tr>
            </table>
          </div>
        </van-tab>
      </van-tabs>
    </div> -->
  </div>
</template>

<script>
import { DatetimePicker, Empty, Field, Form, Tab, Tabs, Toast } from 'vant'
import { getCookies, isPhone } from '../../utils/util'
import policyApi from '@/api/policyApi'

export default {
  name: 'policyRobotDetail',
  components: {
    Empty,
    Field,
    Form,
    DatetimePicker,
    Tab,
    Tabs,
    Toast,
  },
  data() {
    return {
      dataSource: {
        billId: '', //单据ID
        billNumber: '', //单据编码
        bizDate: '', //登记时间
        carNo: '', //车牌号
        insurance: '', //保险类型
        insuranceType: '', //保险分类
        vinCode: '', //车架号
        carModelName: '', //车型
        customerName: '', //客户名称
        mobile: '', //电话
        fixCenterName: '', //维修中心
        insCmp: '', //保险公司
        outBillDateEx: '', //登记时间
        acciInsAmount: '', //交强险金额
        comInsAmount: '', //商业险金额
        vehicleTaxAmount: '', //车船税
        otherAmt: '', //车架意金额
        beginTime: '', //起保日期
        endTime: '-', //终保日期
        insPsn: '', //被保险人
        insPhone: '', //被保险人电话
        totalAmout: '', //总保费
        remark: '', //备注
        isQ3: '', //是否Q3
        bizSrc: '', //业务来源
        directSelling: '', //直销业务
        policyStatus: '', //保单状态
        billStatus: '', //单据状态
        temp: '', //服务顾问
        saleTypes: '', //销售类型
        isTurnIns: '', //是否转报
        dqxOption: '', //盗枪险类型
        rotalReturnAmt: '', //返点金额合计
        recAmt: '', //已开款金额
        invAmt: '', //已开票金额
        collectionDate: '', //收款日期
        invoiceDate: '', //开票日期
        inscmpBillNo: '', //商业保险单号
        inscmpAcciBillNo: '', //交强险单号
        kdtEntry: [
          // {
          //   entryId: "", //分录id
          //   insuranceType: "", //投险投保
          //   insuranceAmount: "", //保费金额
          //   insLimitAmt: "", //保费限额
          //   addDate: "", //批增时间
          //   name: "",
          // },
        ],
      },
      detailId: '',
      tabActive: 0,
      userId: getCookies('userId'),
      tabIndex: 0,
    }
  },

  mounted() {
    if (this.$route.query) {
      this.detailId = this.$route.query.billId
      this.getDetail(this.detailId)
    }
  },
  methods: {
    getDetail(billId) {
      console.log(billId)
      policyApi
        .queryBillInsuranceById({
          billId,
          userId: this.userId,
        })
        .then((res) => {
          if (res.data) {
            this.dataSource = res.data
          }
        })
    },
    handleTel(tel) {
      if (isPhone()) {
        window.location.href = `tel:${tel}`
      } else {
        Toast('请在手机端使用此功能')
      }
    },
    goCarDetail() {
      this.$router.push({
        path: '/carOrderDetail',
        query: { billId: this.dataSource.carId },
      })
    },
    onClickLeft() {
      this.$router.go(-1)
    },
  },
}
</script>

<style lang="less" scoped>
.flex {
  display: flex;
  align-items: center;
}
.registerDetail {
  background: #f3f3f3;
  overflow: hidden;
  .detail_header {
    justify-content: space-between;
    margin: 0.2rem 0.2rem;
    border-radius: 5px;
    background: #fff;
    padding: 0.3rem;
    .detail_header_lt {
      .carNo {
        font-size: 0.32rem;
        font-weight: bold;
        margin-bottom: 0.2rem;
        .icon-right {
          margin-left: 0.2rem;
          color: #409eff;
        }
      }
      .hank {
        font-size: 0.28rem;
        color: #666;
      }
    }
    .detail_header_rt {
      justify-content: flex-start;
      .txt {
        font-size: 0.28rem;
        color: #161616;
      }
      .icon-tel {
        color: #fff;
        background: #35bc04;
        font-size: 0.32rem;
        padding: 0.1rem;
        border-radius: 50%;
        margin-right: 0.1rem;
      }
    }
  }
  .formData {
    background: #fff;
  }
}

.label_item {
  color: #35bc04;
  border: 1px solid #35bc04;
  border-radius: 4px;
  margin-right: 0.1rem;
  padding: 0.01rem 0.2rem;
  font-size: 0.2rem;
  &:last-child {
    margin-right: 0;
  }
}
.tabBarBox {
  margin-top: 0.2rem;
}
.tabCar {
  margin-top: 0.1rem;
}

.insInfo {
  background: #fff;
  overflow: hidden;
  padding-bottom: 0.3rem;
}
.tablebox {
  width: 95%;
  margin: auto;
  border-collapse: collapse;
  text-align: center;
  margin-top: 20px;

  tr {
    th {
      font-size: 0.24rem;
      border: 1px solid #ececec;
      padding: 0.2rem 0;
      background: #f8f8f8;
    }
    td {
      padding: 0.1rem 0;
      border: 1px solid #ececec;
      font-size: 0.24rem;
    }
  }
}
.task_header {
  background: url('~@/assets/images/title_bg.png') no-repeat center;
  font-size: 0.24rem;
  height: 50px;
  background-size: 100% 100%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9;

  .top_title {
    position: relative;
    width: 100%;
    height: 50px;

    .top_title_back {
      position: absolute;
      left: 10px;
      line-height: 50px;
      color: #fff;
    }

    .top_title_val {
      text-align: center;
      line-height: 50px;
      color: #fff;
      font-weight: bold;
      font-size: 16px;
    }
    .task_transbox {
      position: absolute;
      right: 10px;
      top: 5px;
      color: #fff;
      z-index: 10;
      font-weight: 400;
      font-size: 10px;
      text-align: center;
      .task_trans {
        width: 24px;
        display: block;
        margin: auto;
      }
    }
  }

  .task_header_data {
    .task_header_date {
      margin-bottom: 10px;
      display: flex;
      align-items: center;

      .task_header_date_w {
        width: 12.5%;
      }

      .task_header_date_item {
        width: 12.5%;
        text-align: center;
        color: #fff;
        font-size: 14px;
      }
    }

    .task_header_followData {
      display: flex;
      align-items: center;
      color: #fff;
      margin-bottom: 10px;

      .task_header_followData_tt {
        width: 12.5%;
        text-align: center;
      }

      .task_header_followData_item {
        width: 12.5%;
        text-align: center;
        font-size: 12px;
        font-weight: bold;
      }
    }
  }
}
.task_detail {
  position: fixed;
  top: 50px;
  left: 0;
  width: 100%;
  z-index: 100;
  .task_detail_header {
    padding: 17px 0 10px;
    background: #fff;
    // margin-bottom: 10px;
    border-bottom: 1px solid #f1f1f1;
    position: relative;

    .title {
      text-align: center;
      //font-family: Alibaba;
      font-weight: 700;
      font-size: 16px;
      color: #333333;
      max-width: 60%;
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow: hidden;
      margin: auto;
      .icon-edit {
        font-size: 14px;
      }
    }
    .name {
      display: flex;
      text-align: center;
      width: 100%;
      justify-content: center;
      margin-top: 10px;

      .txt {
        //font-family: Alibaba;
        font-weight: 400;
        font-size: 12px;
        color: #999999;
        text-align: center;
        margin-right: 10px;
      }
    }
    .status {
      //font-family: Alibaba;
      position: absolute;
      top: 16px;
      right: 10px;
      .status_icon {
        width: 12px;
        margin-right: 4px;
      }
      &.status1 {
        color: #ff1100;
        background: rgba(255, 48, 33, 0.2);
      }
      &.status2 {
        color: #00b42a;
        background: #e8ffea;
      }
      .item_img {
        width: 20px;
        height: 20px;
        margin-left: 10px;
        border-radius: 50%;
      }
    }
  }
  .tabbox {
    // padding: 0 10px;
    padding-top: 15px;
    border-top: 1px solid #f7f5f5;
    margin-top: 15px;
    position: relative;
    width: 7.5rem;
    overflow: hidden;
    .tab_list {
      width: 10rem;
      overflow-x: auto;
      clear: both;
      .tab_item {
        font-weight: 400;
        font-size: 14px;
        color: #4e5969;
        text-align: center;
        background: #f7f7f7;
        border-radius: 32px;
        padding: 8px 16px;
        margin-right: 6px;
        cursor: pointer;
        float: left;
        &:last-child {
          margin-right: 0;
        }
        &.active {
          color: #165dff;
          text-align: center;
          background: #d8e3ff;
        }
      }
    }
  }
}
.pop_tab {
  padding: 25px 32px;
  .title {
    font-weight: 700;
    font-size: 12px;
    color: #333333;
    line-height: 17px;
    text-align: left;
    margin-bottom: 20px;
  }
  .pop_tablist {
    width: 100%;
    .pop_tab_item {
      background: #f9f9f9;
      border-radius: 62px 62px 62px 62px;
      font-weight: 500;
      font-size: 10px;
      color: #4b4b4b;
      text-align: center;
      width: 30%;
      border: 1px solid #f9f9f9;
      margin-right: 5%;
      box-sizing: border-box;
      float: left;
      margin-bottom: 10px;
      padding: 7px 0;
      cursor: pointer;
      &:nth-child(3n) {
        margin-right: 0;
      }
      &.active {
        color: #ff4444;
        background: #ffd8d3;
        border-radius: 62px 62px 62px 62px;
        border: 1px solid #dd5953;
      }
    }
  }
}
.tabBarBox {
  position: relative;
  .icon_menubox {
    position: fixed;
    right: 0px;
    top: 116px;
    background: #fff;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 11;
  }
  .icon_menu {
    width: 27px;
    margin-left: 10px;
    // position: relative;
    // top: 0px;
    display: block;
    margin: auto;
    padding-top: 10px;
  }
}
.detailbox_item {
  margin-top: 10px;
  background: #fff;
  padding: 10px;
  .detailbox_item_title {
    font-size: 16px;
    font-weight: 700;
    color: #1d2129;
    margin-bottom: 14px;
    background: url('~@/assets/images/ttbg.png') no-repeat left bottom;
    background-size: 32px 6px;
  }
  .detail_content {
    background: #f9fafc;
    border-radius: 4px 4px 4px 4px;
    border: 1px solid #fbfcfe;
    padding: 17px 16px;

    .task_item_type {
      margin-bottom: 20px;

      .task_item_tt {
        font-weight: 800;
        font-size: 12px;
        color: #86909c;
        margin-bottom: 10px;
      }
      .task_item_val {
        font-weight: 700;
        font-size: 16px;
        color: #333333;
      }
      .task_item_desc {
        font-weight: 300;
        font-size: 14px;
        color: #000000;
        background: #f2f3f5;
        padding: 5px 6px;
      }
    }
    .task_itembox {
      overflow: hidden;
      .task_itembox_con {
        width: 50%;
        margin-bottom: 15px;
        float: left;
        .task_label {
          font-weight: 400;
          font-size: 12px;
          color: #86909c;
          margin-bottom: 5px;
        }
        .task_value {
          font-weight: 700;
          font-size: 16px;
          color: #2f2f2f;
        }
      }
    }
  }
  .relat_tab {
    display: flex;
    margin-bottom: 10px;
    .relat_tab_item {
      font-weight: 500;
      font-size: 12px;
      color: #333333;
      border-radius: 4px;
      padding: 5px 8px;
      background: #f7f7f7;
      margin-right: 5px;
      &.active {
        color: #165dff;
        background: #d8e3ff;
      }
    }
  }
  .relat_content {
    .relat_item {
      background: #ffffff;
      box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.09);
      border-radius: 4px 4px 4px 4px;
      border: 1px solid #fbfcfe;
      margin-bottom: 20px;
      padding: 10px 9px 12px;

      .relat_content_header {
        margin-bottom: 10px;
        display: flex;
        justify-content: space-between;

        .name {
          font-weight: bold;
          font-size: 14px;
          color: #333333;
        }
        .status {
          font-weight: 700;
          font-size: 12px;
          color: #00b42a;
          background: #e8ffea;
          border-radius: 2px 2px 2px 2px;
          padding: 5px 8px;
          &.status2 {
            background: rgba(255, 48, 33, 0.2);
            color: #ff1100;
          }
        }
      }
      .relat_carInfo {
        font-weight: 300;
        font-size: 14px;
        color: #000000;
        background: #f2f3f5;
        padding: 5px 6px;
        margin-bottom: 12px;
      }
      .relat_user {
        display: flex;
        justify-content: space-between;
        font-weight: bold;
        font-size: 12px;
        color: #165dff;
        background: #e8f5ff;
        border-radius: 2px 2px 2px 2px;
        padding: 5px 6px;
      }
    }
  }
  .followInfo_content {
    .followInfo_item {
      padding: 10px 0px 10px 20px;

      .followInfo_top {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
        .followInfo_circle {
          background: #f2f2f2;
          border-radius: 50%;
          width: 9px;
          height: 9px;
          margin-right: 10px;
        }
        .followInfo_name {
          font-weight: 700;
          font-size: 14px;
          color: #86909c;
        }
      }

      .followInfo_box {
        display: flex;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;

        .followInfo_linebox {
          width: 1px;
          position: relative;
          -ms-flex-item-align: stretch;
          align-self: stretch;
          background: #f2f2f2;
          margin: 0 10px 0 4px;
        }
        .followInfo_val {
          width: 100%;
          padding: 12px 16px;
          background: #f9fafc;
          border-radius: 4px 4px 4px 4px;
          border: 1px solid #fbfcfe;
          flex: 1;
          .followInfo_val_item {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            .item_label {
              font-weight: 400;
              font-size: 14px;
              color: #86909c;
            }
            .item_val {
              font-weight: 700;
              font-size: 14px;
              color: #2f2f2f;
            }
          }
          .followInfo_val_item2 {
            .item_label {
              font-weight: 400;
              font-size: 14px;
              color: #86909c;
              margin-bottom: 10px;
            }
            .item_val {
              font-weight: 300;
              font-size: 14px;
              color: #86909c;
              background: #f2f3f5;
              padding: 5px 6px;
            }
          }
        }
      }
      &.active {
        .followInfo_top {
          .followInfo_circle {
            background: #165dff;
          }
          .followInfo_name {
            color: #165dff;
          }
        }
        .followInfo_box {
          .followInfo_linebox {
            background: #165dff;
          }
        }
      }
    }
  }
  .carInfo_content {
    background: #f9fafc;
    border-radius: 4px 4px 4px 4px;
    border: 1px solid #fbfcfe;
    padding: 7px 16px;
    .carInfo_item {
      display: flex;
      justify-content: space-between;
      margin-bottom: 8px;
      .item_label {
        font-weight: 400;
        font-size: 12px;
        color: #86909c;
      }
      .item_val {
        font-weight: 700;
        font-size: 12px;
        color: #333333;
      }
      &:last-child {
        margin-bottom: 0;
      }
    }
  }

  .contact_content {
    .contact_item {
      box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.02);
      border-radius: 4px 4px 4px 4px;
      border: 1px solid #f4f4f6;
      margin-bottom: 3px;
      padding: 12px 10px 12px 10px;

      .contact_top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 14px;
        .item_label {
          font-weight: 700;
          font-size: 12px;
          color: #165dff;
          background: #e8f5ff;
          border-radius: 2px 2px 2px 2px;
          padding: 4px 5px;
        }
        .item_icon {
          display: flex;
          .item_img {
            width: 29px;
            height: 29px;
            margin-right: 17px;
            &:last-child {
              margin-right: 0;
            }
          }
        }
      }
      .contact_bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-left: 4px;
        .item_name {
          display: flex;

          .txt1 {
            font-weight: 400;
            font-size: 12px;
            color: #86909c;
          }
          .txt2 {
            font-weight: 700;
            font-size: 12px;
            color: #2f2f2f;
          }
        }
      }
    }
  }

  .repair_content {
    .repair_list {
      .repair_item {
        box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.05);
        border-radius: 4px 4px 4px 4px;
        border: 1px solid #f4f4f6;
        padding: 10px;
        margin-bottom: 10px;
        .item_top {
          display: flex;
          justify-content: space-between;
          border-bottom: 1px solid #f7f5f5;
          padding-bottom: 10px;
          .item_num {
            display: flex;
            .item_icon {
              width: 11px;
              margin-right: 5px;
            }
            .item_name {
              font-weight: 800;
              font-size: 14px;
              color: #333333;
            }
          }
          .item_btn {
            font-weight: 400;
            font-size: 12px;
            color: #165dff;
          }
        }
        .item_bottom {
          padding-top: 8px;
          .item_box {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            align-items: center;
            width: 100%;

            .item_lt {
              display: flex;

              .item_lable {
                font-weight: 400;
                font-size: 12px;
                color: #86909c;
              }
              .item_val {
                font-weight: 400;
                font-size: 12px;
                color: #2f2f2f;
              }
            }
            .item_rt {
              background: #e8f5ff;
              border-radius: 2px 2px 2px 2px;
              font-weight: 700;
              font-size: 10px;
              color: #165dff;
              padding: 3px 5px;
              display: flex;

              .item_lable {
              }
              .item_val {
              }
            }
          }
          .item_box2 {
            .item_lt {
              display: flex; /* 使用弹性盒模型 */
              .item_lable {
                font-weight: 400;
                font-size: 12px;
                color: #86909c;
                width: 60px;
              }
              .item_val {
                font-weight: 400;
                font-size: 12px;
                color: #2f2f2f;
                width: calc(100% - 60px);
              }
            }
          }
        }
      }
    }
  }

  .card_content {
    min-height: calc(100vh - 150px);

    .card_item {
      border-radius: 4px;
      position: relative;
      height: 86px;
      display: flex;
      align-items: center;
      margin-bottom: 10px;
      background: #fff;
      .item_lt {
        width: 134px;
        height: 86px;
        font-weight: 700;
        font-size: 36px;
        line-height: 86px;
        color: #ffffff;
        background: url('~@/assets/images/card_bg.png') no-repeat center;
        background-size: 134px 86px;
        text-align: center;
        margin-right: 10px;
        border-radius: 0px 12px 12px 0px;
      }
      .item_rt {
        padding-top: 10px;
        .item_name {
          margin-bottom: 8px;
          font-weight: 700;
          font-size: 14px;
          color: #2f2f2f;
        }
        .item_number {
          font-weight: 700;
          font-size: 12px;
          color: #2f2f2f;
          margin-bottom: 8px;
        }
        .item_time {
          font-weight: 400;
          font-size: 12px;
          color: #86909c;
          display: flex;
          .txt1 {
            margin-right: 10px;
          }
        }
      }
      .item_type {
        font-weight: 700;
        font-size: 12px;
        color: #ffffff;
        text-align: center;
        padding: 5px 10px;
        border-radius: 0px 4px 0px 4px;
        background: #ff2b2b;
        position: absolute;
        top: 0px;
        right: 0;
      }
    }
  }

  .no_icon {
    padding: 25px;
    .no_icon_img {
      width: 70px;
      display: block;
      margin: auto;
    }
    .no_icon_txt {
      font-weight: 400;
      font-size: 14px;
      color: #86909c;
      text-align: center;
      margin-top: 10px;
    }
  }
}
.mb80 {
  margin-bottom: 80px;
}
.mt0 {
  margin-top: 0px;
}
.mt175 {
  margin-top: 175px;
}
.mt160 {
  margin-top: 165px;
}
.mb60 {
  margin-bottom: 60px;
}
.detailbg {
  background: #f3f3f3;
}
.w100 {
  width: 100% !important;
}

/deep/ .van-tabs__line {
  display: none;
}
/deep/ .van-tab {
  font-weight: 400;
  width: 90px;
  font-size: 14px;
  color: #4e5969;
  text-align: center;
  background: #f7f7f7;
  border-radius: 32px;
  padding: 8px 16px;
  margin-right: 6px;
  // cursor: pointer;
  // flex: inherit;
}
/deep/ .van-tab--active {
  color: #165dff;
  text-align: center;
  background: #d8e3ff;
}
/deep/ .van-tabs__nav--line {
  height: 30px;
  padding: 10px;
}
/deep/ .van-tabs--line .van-tabs__wrap {
  height: auto;
  position: fixed;
  top: 116px;
  left: 0;
  width: 100%;
  z-index: 10;
}
/deep/ .van-tabs__wrap--scrollable .van-tabs__nav {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  width: 85%;
}
</style>
